package com.hanqi.util.shiro;

import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authc.UsernamePasswordToken;

public class UnamePwordToken extends UsernamePasswordToken {

    public UnamePwordToken() {
    }

    public UnamePwordToken(String username, String password) {
        super(username, password);
    }

    public void setPassword(String password) {
        if (StringUtils.isEmpty(password)) {
            return;
        }
        char[] pword = password.toCharArray();

        this.setPassword(pword);
    }
}
